package ae.pcfc.etks.online.itworx.ehs.web.manager.impl;

import java.util.List;

import ae.pcfc.etks.online.itworx.ehs.web.dao.IMSDAO;
import ae.pcfc.etks.online.itworx.ehs.web.exception.CommunicationException;
import ae.pcfc.etks.online.itworx.ehs.web.exception.IMSException;
import ae.pcfc.etks.online.itworx.ehs.web.manager.IMSManager;
import ae.pcfc.etks.online.itworx.ehs.web.model.IMSComment;

public class IMSManagerImpl extends BaseManagerImpl implements IMSManager {

	private IMSDAO imsDAO;

	public IMSDAO getImsDAO() {
		return imsDAO;
	}

	public void setImsDAO(IMSDAO imsDAO) {
		this.imsDAO = imsDAO;
	}

	@Override
	public String createIMPSRecord(String inspectionCode, String category,
			String buCode, String requestorId, String createdBy) throws IMSException,CommunicationException {
		return imsDAO.createIMPSRecord(inspectionCode, category, buCode, requestorId, createdBy);
	}

	@Override
	public String cancelIMPSRecord(String imsLogId) throws IMSException,CommunicationException {
		return imsDAO.cancelIMPSRecord(imsLogId);
	}

	@Override
	public String retrieveIMSStatus(String imsLogId) throws IMSException,CommunicationException {
		return imsDAO.retrieveIMSStatus(imsLogId);
	}

	@Override
	public List<IMSComment> retrieveIMSComments(String imsLogId) throws IMSException,CommunicationException {
		return imsDAO.retrieveIMSComments(imsLogId);
	}

	@Override
	public String setIMSCustomerReply(String imsLogId,
			List<IMSComment> commentsRecords) throws IMSException,CommunicationException {
		return imsDAO.setIMSCustomerReply(imsLogId, commentsRecords);
	}


}
